// 小程序api
//const domainUrl = "http://192.168.50.21:6009";
const domainUrl = "https://card.xuerhua.com";
// const url ="http://localhost:80"
const url ="http://192.168.215.206:80"

const xcxUrl = domainUrl + '/xcxapi';
// 图片的头部
const picUrl = domainUrl;
const xcxName = '-xeh';//小程序后缀 世纪曙光：-sjsg，宜程酒店：-ycjd

const urls = {
  // 初始化用户信息
  initUserInfo: xcxUrl + '/user/initUserInfo',
  // 获取用户信息
  getUserInfo: xcxUrl + '/user/queryUserInfo',
  // 上传附件
  addAttch: xcxUrl + '/attach/addAttch',
  //上传签名
  addSignAttch: xcxUrl + '/attach/addSignAttch',
  // 获取手机号
  getPhone: xcxUrl + '/user/getDecryptInfo',
  // 员工通过手机号绑定信息
  bindEmployee: xcxUrl + '/user/bindUser',
  // 员工修改信息
  updateUser: xcxUrl + '/user/updateUser',
  // 添加员工信息
  addUser: xcxUrl + '/user/addUser',
  // 查询浏览历史记录
  getHistoryList: xcxUrl + '/history/getHistoryList',
  // 查询不重复浏览历史记录
  getDistinctHistoryList: xcxUrl + '/history/getDistinctHistoryList',
  // 统计浏览历史记录
  getHistoryTotal: xcxUrl + '/history/getHistoryTotal',
  // 查询公司员工列表
  getCompanyUserList: xcxUrl + '/user/queryCompanyUserList',
  // 查询员工信息
  queryEmployeeInfo: xcxUrl + '/user/queryCompanyUser',
  // 查询顾客信息
  queryCustomerInfo: xcxUrl + '/user/queryCustomer',
  // 添加顾客信息
  addCustomer: xcxUrl + '/user/addCust',
  // 修改顾客信息
  updateCustomer: xcxUrl + '/user/updateCust',
  // 查询公司列表
  getCompanyList: xcxUrl + '/company/getList',
  getCompanyDetail: xcxUrl + '/company/getDetail',
  // 添加浏览记录
  addVisit: xcxUrl + '/user/addVisit',

  // 腾讯云IM：获取UserSig
  getUserSig: xcxUrl + '/chat/getChatUserSig',

  dictData: xcxUrl + '/common/dictData?type=',//字典数据
  dictType: xcxUrl + '/common/dictType?type=',//字典类型数据,

  questionList: xcxUrl + '/question/getList',
  questionDetail: xcxUrl + '/question/getDetail',
  questionAnswerList: xcxUrl + '/question/answerList',
  questionAnswerAdd: xcxUrl + '/question/answerAdd',
  questionAnswerDetail: xcxUrl + '/question/answerDetail',
  questionUserList: xcxUrl + '/question/getUserList',
  answerTotal: xcxUrl + '/question/answerTotal',
  answerYmTotal: xcxUrl + '/question/answerYmTotal',

  /*普通二维码 */
  //
  addEwm: domainUrl + '/xuerhua/business' + xcxName,//添加公司员工二维码,参数公司id:cid=1
  fsEwm: domainUrl + '/xuerhua/card' + xcxName,//展示名片二维码,参数: userType=1&id=1,
  questionEwm: domainUrl + '/xuerhua/question' + xcxName,//跳转问卷
};

module.exports = {
  appid: 'wx50ddac24de317d59',//也要修改project.config.json,旭尔华科技：wx08e683c015bf8561，世纪曙光：wxe3cae4f92c96cc3a,宜程酒店：wxb4839b80fde79a24
  qqmapid: 'PMJBZ-O23CW-AWJRC-RFAST-5G2UV-HJFWI',
  accessKeySecret:"679bddfc9d91f2b0d8d4f63b5640a60d",
  picUrl: picUrl,
  urls: urls,
  url:url
}